package com.suda.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/****
 * @Author:zhuyongjie
 * @Description:Customer构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="t_customer")
public class Customer implements Serializable{

	@Id
    @Column(name = "customer_id")
	private String customerId;//ID

    @Column(name = "ID_number")
	private String idNumber;//身份证号码

    @Column(name = "customer_name")
	private String customerName;//顾客名字

    @Column(name = "customer_address")
	private String customerAddress;//常用地址

    @Column(name = "customer_phone")
	private String customerPhone;//联系电话

    @Column(name = "gender")
	private String gender;//性别

    @Column(name = "customer_type")
	private String customerType;//顾客类型

    @Column(name = "debt")
	private Double debt;//欠费



	//get方法
	public String getCustomerId() {
		return customerId;
	}

	//set方法
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	//get方法
	public String getIDNumber() {
		return idNumber;
	}

	//set方法
	public void setIDNumber(String IDNumber) {
		this.idNumber = IDNumber;
	}
	//get方法
	public String getCustomerName() {
		return customerName;
	}

	//set方法
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	//get方法
	public String getCustomerAddress() {
		return customerAddress;
	}

	//set方法
	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}
	//get方法
	public String getCustomerPhone() {
		return customerPhone;
	}

	//set方法
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	//get方法
	public String getGender() {
		return gender;
	}

	//set方法
	public void setGender(String gender) {
		this.gender = gender;
	}
	//get方法
	public String getCustomerType() {
		return customerType;
	}

	//set方法
	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}
	//get方法
	public Double getDebt() {
		return debt;
	}

	//set方法
	public void setDebt(Double debt) {
		this.debt = debt;
	}

	@Override
	public String toString() {
		return "Customer{" +
				"customerId='" + customerId + '\'' +
				", idNumber='" + idNumber + '\'' +
				", customerName='" + customerName + '\'' +
				", customerAddress='" + customerAddress + '\'' +
				", customerPhone='" + customerPhone + '\'' +
				", gender='" + gender + '\'' +
				", customerType='" + customerType + '\'' +
				", debt=" + debt +
				'}';
	}
}
